import {
    wxRequest
} from '../utils/httpRequest';

const apiMall = 'http://rap2api.taobao.org/app/mock/235444'

/**
 * 获取发现好商品接口
 * @param  {[type]} params [description]
 * @return {[type]}        [description]
 */

// 一级分类
const memuList = (params) => wxRequest(params, apiMall + '/product/cate/classify/list');
// 二级三级分类
const productList = (params) => wxRequest(params, apiMall + '/product/cate/classify/listtwo');
// const productList = (params) => wxRequest(params, apiMall + '/product/cate/classify/list');
// 微信授权登录
const wxUserAuthorization = ('/user/login/authorization');

//商品分类--end

export default {
    memuList,
    productList,
    wxUserAuthorization
}
